package com.geaosu.wanandroid.kotlin.activity

import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.geaosu.wanandroid.kotlin.R
import kotlinx.android.synthetic.main.activity_main.*

/**
 * 主界面
 */
class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

//        val button1: Button = findViewById(R.id.button1)
//        button1.setOnClickListener { Toast.makeText(this, "点了", Toast.LENGTH_SHORT).show() }

        button1.setOnClickListener { Toast.makeText(this, "点了", Toast.LENGTH_SHORT).show() }

    }
}